home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 19.zip / BS1 part 19 / Lattice C disk 4.adf / Compiler_Headers / exec / libraries.h < prev    next >
C/C++ Source or Header  |  1988-10-25  |  2KB  |  61 lines

  1. #ifndef EXEC_LIBRARIES_H
  2. #define EXEC_LIBRARIES_H
  3. /*
  4. **    $Filename: exec/libraries.h $
  5. **    $Release: 1.3 $
  6. **
  7. **    
  8. **
  9. **    (C) Copyright 1985,1986,1987,1988 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. #ifndef EXEC_NODES_H
  14. #include "exec/nodes.h"
  15. #endif !EXEC_NODES_H
  16.  
  17.  
  18. #define LIB_VECTSIZE    6
  19. #define LIB_RESERVED    4
  20. #define LIB_BASE    (-LIB_VECTSIZE)
  21. #define LIB_USERDEF    (LIB_BASE-(LIB_RESERVED*LIB_VECTSIZE))
  22. #define LIB_NONSTD    (LIB_USERDEF)
  23.  
  24. #define LIB_OPEN    (-6)
  25. #define LIB_CLOSE    (-12)
  26. #define LIB_EXPUNGE    (-18)
  27. #define LIB_EXTFUNC    (-24)
  28.  
  29.  
  30. struct Library {
  31.     struct  Node lib_Node;
  32.     UBYTE   lib_Flags;
  33.     UBYTE   lib_pad;
  34.     UWORD   lib_NegSize;        /* number of bytes before library */
  35.     UWORD   lib_PosSize;        /* number of bytes after library */
  36.     UWORD   lib_Version;
  37.     UWORD   lib_Revision;
  38.     APTR    lib_IdString;
  39.     ULONG   lib_Sum;            /* the checksum itself */
  40.     UWORD   lib_OpenCnt;        /* number of current opens */
  41. };
  42.  
  43. #define LIBF_SUMMING    (1<<0)        /* we are currently checksumming */
  44. #define LIBF_CHANGED    (1<<1)        /* we have just changed the lib */
  45. #define LIBF_SUMUSED    (1<<2)        /* set if we should bother to sum */
  46. #define LIBF_DELEXP    (1<<3)        /* delayed expunge */
  47.  
  48. /* Temporary Compatibility */
  49. #define lh_Node        lib_Node
  50. #define lh_Flags    lib_Flags
  51. #define lh_pad        lib_pad
  52. #define lh_NegSize    lib_NegSize
  53. #define lh_PosSize    lib_PosSize
  54. #define lh_Version    lib_Version
  55. #define lh_Revision    lib_Revision
  56. #define lh_IdString    lib_IdString
  57. #define lh_Sum        lib_Sum
  58. #define lh_OpenCnt    lib_OpenCnt
  59.  
  60. #endif    /* EXEC_LIBRARIES_H */
  61.